#pragma once

#include <wx/wx.h>
#include <wx/panel.h>
#include <vector>
#include "../json/json.h"


class Menu : public wxPanel
{
public:
    Menu(wxPanel* parent);

    void Clear(wxCommandEvent& event);
    void Back(wxCommandEvent& event);
    void SetCandS(wxCommandEvent& event);
    void Select(wxCommandEvent& event);
    void Delete(wxCommandEvent& event);
    void Copy(wxCommandEvent& event);



    void UseLine(wxCommandEvent& event);
    void UseRect(wxCommandEvent& event);
    void UseRoud(wxCommandEvent& event);
    void UseArc(wxCommandEvent& event);
    void UsePoint(wxCommandEvent& event);

    void Save(wxCommandEvent& event);


    wxPanel* m_parent;
    wxButton* m_clear;
    wxButton* m_back;
    wxButton* m_setcs;
    wxButton* m_select;
    wxButton* m_delete;
    wxButton* m_copy;



    wxButton* m_line;
    wxButton* m_rect;
    wxButton* m_roud;
    wxButton* m_arc;
    wxButton* m_point;


    wxButton* m_save;

    int flag = 0;

    wxColor pencolor;
    wxColor brushcolor = -1;


};


const int ID_CLEAR = 100;
const int ID_BACK = 101;
const int ID_SETCS = 102;
const int ID_SELECT = 103;
const int ID_DELETE = 104;
const int ID_COPY = 105;


const int ID_LINE = 110;
const int ID_RECT = 111;
const int ID_ROUD = 112;
const int ID_ARC = 113;
const int ID_POINT = 114;

const int ID_SAVE = 130;


